package cn.ito.zjgsu.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FinancialManageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public FinancialManageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFinancialManageIdIsNull() {
            addCriterion("financial_manage_id is null");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdIsNotNull() {
            addCriterion("financial_manage_id is not null");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdEqualTo(Integer value) {
            addCriterion("financial_manage_id =", value, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdNotEqualTo(Integer value) {
            addCriterion("financial_manage_id <>", value, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdGreaterThan(Integer value) {
            addCriterion("financial_manage_id >", value, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("financial_manage_id >=", value, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdLessThan(Integer value) {
            addCriterion("financial_manage_id <", value, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdLessThanOrEqualTo(Integer value) {
            addCriterion("financial_manage_id <=", value, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdIn(List<Integer> values) {
            addCriterion("financial_manage_id in", values, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdNotIn(List<Integer> values) {
            addCriterion("financial_manage_id not in", values, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdBetween(Integer value1, Integer value2) {
            addCriterion("financial_manage_id between", value1, value2, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("financial_manage_id not between", value1, value2, "financialManageId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdIsNull() {
            addCriterion("financial_type_id is null");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdIsNotNull() {
            addCriterion("financial_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdEqualTo(String value) {
            addCriterion("financial_type_id =", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdNotEqualTo(String value) {
            addCriterion("financial_type_id <>", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdGreaterThan(String value) {
            addCriterion("financial_type_id >", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("financial_type_id >=", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdLessThan(String value) {
            addCriterion("financial_type_id <", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdLessThanOrEqualTo(String value) {
            addCriterion("financial_type_id <=", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdLike(String value) {
            addCriterion("financial_type_id like", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdNotLike(String value) {
            addCriterion("financial_type_id not like", value, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdIn(List<String> values) {
            addCriterion("financial_type_id in", values, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdNotIn(List<String> values) {
            addCriterion("financial_type_id not in", values, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdBetween(String value1, String value2) {
            addCriterion("financial_type_id between", value1, value2, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialTypeIdNotBetween(String value1, String value2) {
            addCriterion("financial_type_id not between", value1, value2, "financialTypeId");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyIsNull() {
            addCriterion("financial_money is null");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyIsNotNull() {
            addCriterion("financial_money is not null");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyEqualTo(String value) {
            addCriterion("financial_money =", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyNotEqualTo(String value) {
            addCriterion("financial_money <>", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyGreaterThan(String value) {
            addCriterion("financial_money >", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyGreaterThanOrEqualTo(String value) {
            addCriterion("financial_money >=", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyLessThan(String value) {
            addCriterion("financial_money <", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyLessThanOrEqualTo(String value) {
            addCriterion("financial_money <=", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyLike(String value) {
            addCriterion("financial_money like", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyNotLike(String value) {
            addCriterion("financial_money not like", value, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyIn(List<String> values) {
            addCriterion("financial_money in", values, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyNotIn(List<String> values) {
            addCriterion("financial_money not in", values, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyBetween(String value1, String value2) {
            addCriterion("financial_money between", value1, value2, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andFinancialMoneyNotBetween(String value1, String value2) {
            addCriterion("financial_money not between", value1, value2, "financialMoney");
            return (Criteria) this;
        }

        public Criteria andPersonIdIsNull() {
            addCriterion("person_id is null");
            return (Criteria) this;
        }

        public Criteria andPersonIdIsNotNull() {
            addCriterion("person_id is not null");
            return (Criteria) this;
        }

        public Criteria andPersonIdEqualTo(Integer value) {
            addCriterion("person_id =", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotEqualTo(Integer value) {
            addCriterion("person_id <>", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdGreaterThan(Integer value) {
            addCriterion("person_id >", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("person_id >=", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdLessThan(Integer value) {
            addCriterion("person_id <", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdLessThanOrEqualTo(Integer value) {
            addCriterion("person_id <=", value, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdIn(List<Integer> values) {
            addCriterion("person_id in", values, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotIn(List<Integer> values) {
            addCriterion("person_id not in", values, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdBetween(Integer value1, Integer value2) {
            addCriterion("person_id between", value1, value2, "personId");
            return (Criteria) this;
        }

        public Criteria andPersonIdNotBetween(Integer value1, Integer value2) {
            addCriterion("person_id not between", value1, value2, "personId");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeIsNull() {
            addCriterion("financial_manage_createtime is null");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeIsNotNull() {
            addCriterion("financial_manage_createtime is not null");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeEqualTo(Date value) {
            addCriterion("financial_manage_createtime =", value, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeNotEqualTo(Date value) {
            addCriterion("financial_manage_createtime <>", value, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeGreaterThan(Date value) {
            addCriterion("financial_manage_createtime >", value, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("financial_manage_createtime >=", value, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeLessThan(Date value) {
            addCriterion("financial_manage_createtime <", value, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("financial_manage_createtime <=", value, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeIn(List<Date> values) {
            addCriterion("financial_manage_createtime in", values, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeNotIn(List<Date> values) {
            addCriterion("financial_manage_createtime not in", values, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeBetween(Date value1, Date value2) {
            addCriterion("financial_manage_createtime between", value1, value2, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFinancialManageCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("financial_manage_createtime not between", value1, value2, "financialManageCreatetime");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsIsNull() {
            addCriterion("fm_delete_tags is null");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsIsNotNull() {
            addCriterion("fm_delete_tags is not null");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsEqualTo(Boolean value) {
            addCriterion("fm_delete_tags =", value, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsNotEqualTo(Boolean value) {
            addCriterion("fm_delete_tags <>", value, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsGreaterThan(Boolean value) {
            addCriterion("fm_delete_tags >", value, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsGreaterThanOrEqualTo(Boolean value) {
            addCriterion("fm_delete_tags >=", value, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsLessThan(Boolean value) {
            addCriterion("fm_delete_tags <", value, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsLessThanOrEqualTo(Boolean value) {
            addCriterion("fm_delete_tags <=", value, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsIn(List<Boolean> values) {
            addCriterion("fm_delete_tags in", values, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsNotIn(List<Boolean> values) {
            addCriterion("fm_delete_tags not in", values, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsBetween(Boolean value1, Boolean value2) {
            addCriterion("fm_delete_tags between", value1, value2, "fmDeleteTags");
            return (Criteria) this;
        }

        public Criteria andFmDeleteTagsNotBetween(Boolean value1, Boolean value2) {
            addCriterion("fm_delete_tags not between", value1, value2, "fmDeleteTags");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}